package com.itheima.d2_type_conversion;

/**
 * @author Dushaohua
 * @date 2024/4/15 11:14
 */
public class Test2 {
    public static void main(String[] args) {
        int a = 789;
        int b = 789 % 10;
        int c = 789 / 10 % 10;
        int d = 789 / 100 % 10;
        System.out.println("个位：" + b);
        System.out.println("十位：" + c);
        System.out.println("百位：" + d);


        int f = 10;
        int g = f--;
        int h = g++;
        int j = ++f;
        System.out.println(f);  //10
        System.out.println(g);  //11
        System.out.println(h);  //10
        System.out.println(j);  //10
    }
}
